import baseUrl from "./baseUrl.js";
import axios from "@/utils/request";

const login_api = {
  // 登录
  async login(params) {
    return axios.post(`${baseUrl.url()}/login/login`, params);
  },
  // 获取用户信息
  async getUserInfo() {
    return axios.get(`${baseUrl.url()}/login/user`);
  },
};

export default login_api;
